package Game;
public abstract class Card {
	// CONSTANTS
	
	// Target constants
	public static final int TARGET_SELF = 0;
	public static final int TARGET_ENEMY = 1;
	public static final int TARGET_ALLY = 2;
	public static final int TARGET_ALLY_ENEMY = 3;
	public static final int TARGET_CELL = 4;
	
	// Rarity constants
	public static final int RARITY_COMMON = 0;
	public static final int RARITY_RARE = 1;
	public static final int RARITY_LEGEND = 2;
	
	String ID;
	String name;
	String desc;
	int rarity = 0;
	
	public Card(String _ID) {
		ID = _ID;
		setName();
		setDesc();
	}
	
	/**
	 * Set name berdasarkan ID Card
	 */
	private void setName() {
		switch (ID) {
		case Character.CHARACTER_HUMAN:
			name = "Human";
			break;
		case Character.CHARACTER_ELF:
			name = "Elf";
			break;
		case Character.CHARACTER_DWARF:
			name = "Dwarf";
			break;
		case Character.CHARACTER_ORC:
			name = "Orc";
			break;
		case Character.CHARACTER_GOBLIN:
			name = "Goblin";
			break;
		default:
			
		}
	}
	
	/**
	 * Set desc berdasarkan ID Card
	 */
	private void setDesc() {
		switch (ID) {
		default:
			
		}
	}
}
